package gjbsh.bangong.ds.model;

import java.util.ArrayList;
import java.util.List;

public class 事务类型Example {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public 事务类型Example() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria and事务类型idIsNull() {
            addCriterion("事务类型ID is null");
            return (Criteria) this;
        }

        public Criteria and事务类型idIsNotNull() {
            addCriterion("事务类型ID is not null");
            return (Criteria) this;
        }

        public Criteria and事务类型idEqualTo(String value) {
            addCriterion("事务类型ID =", value, "事务类型id");
            return (Criteria) this;
        }

        public Criteria and事务类型idNotEqualTo(String value) {
            addCriterion("事务类型ID <>", value, "事务类型id");
            return (Criteria) this;
        }

        public Criteria and事务类型idGreaterThan(String value) {
            addCriterion("事务类型ID >", value, "事务类型id");
            return (Criteria) this;
        }

        public Criteria and事务类型idGreaterThanOrEqualTo(String value) {
            addCriterion("事务类型ID >=", value, "事务类型id");
            return (Criteria) this;
        }

        public Criteria and事务类型idLessThan(String value) {
            addCriterion("事务类型ID <", value, "事务类型id");
            return (Criteria) this;
        }

        public Criteria and事务类型idLessThanOrEqualTo(String value) {
            addCriterion("事务类型ID <=", value, "事务类型id");
            return (Criteria) this;
        }

        public Criteria and事务类型idLike(String value) {
            addCriterion("事务类型ID like", value, "事务类型id");
            return (Criteria) this;
        }

        public Criteria and事务类型idNotLike(String value) {
            addCriterion("事务类型ID not like", value, "事务类型id");
            return (Criteria) this;
        }

        public Criteria and事务类型idIn(List<String> values) {
            addCriterion("事务类型ID in", values, "事务类型id");
            return (Criteria) this;
        }

        public Criteria and事务类型idNotIn(List<String> values) {
            addCriterion("事务类型ID not in", values, "事务类型id");
            return (Criteria) this;
        }

        public Criteria and事务类型idBetween(String value1, String value2) {
            addCriterion("事务类型ID between", value1, value2, "事务类型id");
            return (Criteria) this;
        }

        public Criteria and事务类型idNotBetween(String value1, String value2) {
            addCriterion("事务类型ID not between", value1, value2, "事务类型id");
            return (Criteria) this;
        }

        public Criteria and事务类别idIsNull() {
            addCriterion("事务类别ID is null");
            return (Criteria) this;
        }

        public Criteria and事务类别idIsNotNull() {
            addCriterion("事务类别ID is not null");
            return (Criteria) this;
        }

        public Criteria and事务类别idEqualTo(String value) {
            addCriterion("事务类别ID =", value, "事务类别id");
            return (Criteria) this;
        }

        public Criteria and事务类别idNotEqualTo(String value) {
            addCriterion("事务类别ID <>", value, "事务类别id");
            return (Criteria) this;
        }

        public Criteria and事务类别idGreaterThan(String value) {
            addCriterion("事务类别ID >", value, "事务类别id");
            return (Criteria) this;
        }

        public Criteria and事务类别idGreaterThanOrEqualTo(String value) {
            addCriterion("事务类别ID >=", value, "事务类别id");
            return (Criteria) this;
        }

        public Criteria and事务类别idLessThan(String value) {
            addCriterion("事务类别ID <", value, "事务类别id");
            return (Criteria) this;
        }

        public Criteria and事务类别idLessThanOrEqualTo(String value) {
            addCriterion("事务类别ID <=", value, "事务类别id");
            return (Criteria) this;
        }

        public Criteria and事务类别idLike(String value) {
            addCriterion("事务类别ID like", value, "事务类别id");
            return (Criteria) this;
        }

        public Criteria and事务类别idNotLike(String value) {
            addCriterion("事务类别ID not like", value, "事务类别id");
            return (Criteria) this;
        }

        public Criteria and事务类别idIn(List<String> values) {
            addCriterion("事务类别ID in", values, "事务类别id");
            return (Criteria) this;
        }

        public Criteria and事务类别idNotIn(List<String> values) {
            addCriterion("事务类别ID not in", values, "事务类别id");
            return (Criteria) this;
        }

        public Criteria and事务类别idBetween(String value1, String value2) {
            addCriterion("事务类别ID between", value1, value2, "事务类别id");
            return (Criteria) this;
        }

        public Criteria and事务类别idNotBetween(String value1, String value2) {
            addCriterion("事务类别ID not between", value1, value2, "事务类别id");
            return (Criteria) this;
        }

        public Criteria and事务类型名称IsNull() {
            addCriterion("事务类型名称 is null");
            return (Criteria) this;
        }

        public Criteria and事务类型名称IsNotNull() {
            addCriterion("事务类型名称 is not null");
            return (Criteria) this;
        }

        public Criteria and事务类型名称EqualTo(String value) {
            addCriterion("事务类型名称 =", value, "事务类型名称");
            return (Criteria) this;
        }

        public Criteria and事务类型名称NotEqualTo(String value) {
            addCriterion("事务类型名称 <>", value, "事务类型名称");
            return (Criteria) this;
        }

        public Criteria and事务类型名称GreaterThan(String value) {
            addCriterion("事务类型名称 >", value, "事务类型名称");
            return (Criteria) this;
        }

        public Criteria and事务类型名称GreaterThanOrEqualTo(String value) {
            addCriterion("事务类型名称 >=", value, "事务类型名称");
            return (Criteria) this;
        }

        public Criteria and事务类型名称LessThan(String value) {
            addCriterion("事务类型名称 <", value, "事务类型名称");
            return (Criteria) this;
        }

        public Criteria and事务类型名称LessThanOrEqualTo(String value) {
            addCriterion("事务类型名称 <=", value, "事务类型名称");
            return (Criteria) this;
        }

        public Criteria and事务类型名称Like(String value) {
            addCriterion("事务类型名称 like", value, "事务类型名称");
            return (Criteria) this;
        }

        public Criteria and事务类型名称NotLike(String value) {
            addCriterion("事务类型名称 not like", value, "事务类型名称");
            return (Criteria) this;
        }

        public Criteria and事务类型名称In(List<String> values) {
            addCriterion("事务类型名称 in", values, "事务类型名称");
            return (Criteria) this;
        }

        public Criteria and事务类型名称NotIn(List<String> values) {
            addCriterion("事务类型名称 not in", values, "事务类型名称");
            return (Criteria) this;
        }

        public Criteria and事务类型名称Between(String value1, String value2) {
            addCriterion("事务类型名称 between", value1, value2, "事务类型名称");
            return (Criteria) this;
        }

        public Criteria and事务类型名称NotBetween(String value1, String value2) {
            addCriterion("事务类型名称 not between", value1, value2, "事务类型名称");
            return (Criteria) this;
        }

        public Criteria and描述IsNull() {
            addCriterion("描述 is null");
            return (Criteria) this;
        }

        public Criteria and描述IsNotNull() {
            addCriterion("描述 is not null");
            return (Criteria) this;
        }

        public Criteria and描述EqualTo(String value) {
            addCriterion("描述 =", value, "描述");
            return (Criteria) this;
        }

        public Criteria and描述NotEqualTo(String value) {
            addCriterion("描述 <>", value, "描述");
            return (Criteria) this;
        }

        public Criteria and描述GreaterThan(String value) {
            addCriterion("描述 >", value, "描述");
            return (Criteria) this;
        }

        public Criteria and描述GreaterThanOrEqualTo(String value) {
            addCriterion("描述 >=", value, "描述");
            return (Criteria) this;
        }

        public Criteria and描述LessThan(String value) {
            addCriterion("描述 <", value, "描述");
            return (Criteria) this;
        }

        public Criteria and描述LessThanOrEqualTo(String value) {
            addCriterion("描述 <=", value, "描述");
            return (Criteria) this;
        }

        public Criteria and描述Like(String value) {
            addCriterion("描述 like", value, "描述");
            return (Criteria) this;
        }

        public Criteria and描述NotLike(String value) {
            addCriterion("描述 not like", value, "描述");
            return (Criteria) this;
        }

        public Criteria and描述In(List<String> values) {
            addCriterion("描述 in", values, "描述");
            return (Criteria) this;
        }

        public Criteria and描述NotIn(List<String> values) {
            addCriterion("描述 not in", values, "描述");
            return (Criteria) this;
        }

        public Criteria and描述Between(String value1, String value2) {
            addCriterion("描述 between", value1, value2, "描述");
            return (Criteria) this;
        }

        public Criteria and描述NotBetween(String value1, String value2) {
            addCriterion("描述 not between", value1, value2, "描述");
            return (Criteria) this;
        }

        public Criteria and当前流程idIsNull() {
            addCriterion("当前流程ID is null");
            return (Criteria) this;
        }

        public Criteria and当前流程idIsNotNull() {
            addCriterion("当前流程ID is not null");
            return (Criteria) this;
        }

        public Criteria and当前流程idEqualTo(String value) {
            addCriterion("当前流程ID =", value, "当前流程id");
            return (Criteria) this;
        }

        public Criteria and当前流程idNotEqualTo(String value) {
            addCriterion("当前流程ID <>", value, "当前流程id");
            return (Criteria) this;
        }

        public Criteria and当前流程idGreaterThan(String value) {
            addCriterion("当前流程ID >", value, "当前流程id");
            return (Criteria) this;
        }

        public Criteria and当前流程idGreaterThanOrEqualTo(String value) {
            addCriterion("当前流程ID >=", value, "当前流程id");
            return (Criteria) this;
        }

        public Criteria and当前流程idLessThan(String value) {
            addCriterion("当前流程ID <", value, "当前流程id");
            return (Criteria) this;
        }

        public Criteria and当前流程idLessThanOrEqualTo(String value) {
            addCriterion("当前流程ID <=", value, "当前流程id");
            return (Criteria) this;
        }

        public Criteria and当前流程idLike(String value) {
            addCriterion("当前流程ID like", value, "当前流程id");
            return (Criteria) this;
        }

        public Criteria and当前流程idNotLike(String value) {
            addCriterion("当前流程ID not like", value, "当前流程id");
            return (Criteria) this;
        }

        public Criteria and当前流程idIn(List<String> values) {
            addCriterion("当前流程ID in", values, "当前流程id");
            return (Criteria) this;
        }

        public Criteria and当前流程idNotIn(List<String> values) {
            addCriterion("当前流程ID not in", values, "当前流程id");
            return (Criteria) this;
        }

        public Criteria and当前流程idBetween(String value1, String value2) {
            addCriterion("当前流程ID between", value1, value2, "当前流程id");
            return (Criteria) this;
        }

        public Criteria and当前流程idNotBetween(String value1, String value2) {
            addCriterion("当前流程ID not between", value1, value2, "当前流程id");
            return (Criteria) this;
        }

        public Criteria and是否有效IsNull() {
            addCriterion("是否有效 is null");
            return (Criteria) this;
        }

        public Criteria and是否有效IsNotNull() {
            addCriterion("是否有效 is not null");
            return (Criteria) this;
        }

        public Criteria and是否有效EqualTo(Long value) {
            addCriterion("是否有效 =", value, "是否有效");
            return (Criteria) this;
        }

        public Criteria and是否有效NotEqualTo(Long value) {
            addCriterion("是否有效 <>", value, "是否有效");
            return (Criteria) this;
        }

        public Criteria and是否有效GreaterThan(Long value) {
            addCriterion("是否有效 >", value, "是否有效");
            return (Criteria) this;
        }

        public Criteria and是否有效GreaterThanOrEqualTo(Long value) {
            addCriterion("是否有效 >=", value, "是否有效");
            return (Criteria) this;
        }

        public Criteria and是否有效LessThan(Long value) {
            addCriterion("是否有效 <", value, "是否有效");
            return (Criteria) this;
        }

        public Criteria and是否有效LessThanOrEqualTo(Long value) {
            addCriterion("是否有效 <=", value, "是否有效");
            return (Criteria) this;
        }

        public Criteria and是否有效In(List<Long> values) {
            addCriterion("是否有效 in", values, "是否有效");
            return (Criteria) this;
        }

        public Criteria and是否有效NotIn(List<Long> values) {
            addCriterion("是否有效 not in", values, "是否有效");
            return (Criteria) this;
        }

        public Criteria and是否有效Between(Long value1, Long value2) {
            addCriterion("是否有效 between", value1, value2, "是否有效");
            return (Criteria) this;
        }

        public Criteria and是否有效NotBetween(Long value1, Long value2) {
            addCriterion("是否有效 not between", value1, value2, "是否有效");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}